<template>
  <el-button type="primary">按钮</el-button>
</template>
<script lang="ts" setup>
import { ApiService } from '../../ts/api.huhuiyu.top';

import { TeachService } from '../../ts/service.huhuiyu.top';

ApiService.get('/test/echo', { echo: '黑暗骑士' }, (data: any) => {
  console.log(data);
});

ApiService.post(
  '/test/converter/json',
  {
    lid: 1,
    logType: '用户登录',
    logInfo: '用户登录成功',
    lastupdate: '',
  },
  (data: any) => {
    console.log(data);
  }
);

TeachService.get('/', { echo: '黑暗骑士' }, (data: any) => {
  console.log(data);
});

TeachService.post('/api/pinyin', { info: '黑暗骑士' }, (data: any) => {
  console.log(data);
});
</script>
